package com.yuan.yblog.crud.entity;

import java.io.Serial;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
* @author hepeiyuan
* @date 2024-06-04
*/
@Data
@TableName("user_collection")
@Schema(description = "用户收藏表")
public class UserCollection implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "收藏id，主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "文章id")
    private Long postId;

    @Schema(description = "文章作者id")
    private Long postUserId;

    @Schema(description = "收藏时间")
    private Date created;

    @Schema(description = "操作收藏/取消收藏的时间")
    private Date modified;

    @Schema(description = "状态，1有效，0无效")
    private Integer status;

}